// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import Vuex from 'vuex';
import App from './App';
import router from './router';
import axios from 'axios';
import qs from 'qs';
import '../theme/index.css';
import '../static/style/common.css';
import ElementUI from 'element-ui';
import Notify from './utils/Notify';
import moment from 'moment';
import store from './vuex/store';

Vue.config.productionTip = false;

Vue.use(Vuex);
Vue.use(ElementUI);

Vue.prototype.$ajax = axios;
Vue.prototype.$qs = qs;
Vue.prototype.$notify = Notify;
Vue.prototype.$moment = moment;

axios.defaults.baseURL = 'http://localhost:8080/mylike-crm';

/* eslint-disable no-new */
new Vue({
  el: '#app',
  render: h => h(App),
  router,
  store,
  components: {App},
  template: '<App/>'
});
